package edu.ped.android.utils;

import java.io.Serializable;

public class MyPoint implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int x;
	private int y;
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	
	public MyPoint(int x, int y) {
		super();
		this.x = x;
		this.y = y;
	}

	public String toString(){
		return x+" "+y;
	}
	
	public boolean equals(Object o){
		if(o instanceof MyPoint){
			MyPoint p = (MyPoint) o;
			return p.x == this.x && p.y == this.y;
		}
		return false;
	}
	
}
